package handlers

import (
	"github.com/go-playground/validator/v10"
	"notabug.org/alimiracle/my-website-api/db"
)

type Handler struct {
	Database db.Database
	validate *validator.Validate
}

func Init() Handler {

	var data Handler

	data.Database = db.Init()
	data.validate = validator.New()
	data.Database.AddAdmin()

	return data
}
